package com.itheima.tlias84.po;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class InsterClazzParam {
    private int id;
    @NotNull(message = "班级名称不能为空")
    @Length(min = 4,max = 30,message = "班级名称长度必须在4-30之间")
    private String name;
    private String room;
    @NotNull(message = "开班日期不能为空")
    private LocalDate beginDate;
    @NotNull(message = "结课时间不能为空")
    private LocalDate endDate;
    private String masterName;
    @NotNull(message = "学科不能为空")
    private int subject;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
